<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file="/common/common.jspf" %>
<script type="text/javascript" src="${ctx}/js/metals/bom/metalsbom_edit.js"></script>
<style type="text/css">
.col-sm-3 {
	width: 15%;
	float: left;
}

.col-sm-9 {
	width: 85%;
	float: left;
}
label[class^="btn btn-default"]{
	margin-top: -4px;
}
</style>
</head>
<body>
	<div class="l_err" style="width: 100%; margin-top: 2px;"></div>
	<form id="form" name="form" class="form-horizontal" method="post"
		action="${ctx}/equip/equip_editEntity.shtml" enctype="multipart/form-data">
		<input type="hidden" class="form-control checkacc" value="${equipAll.id}"
			name="id" >
		<section class="panel panel-default">			
				<div class="form-group">
				<label class="col-sm-3 control-label">评审参与人员</label>
				<div class="col-sm-9">
					<input type="text" class="form-control" placeholder="请输入评审参与人员"
						name="judgepeople" id="nc_code_group_desc" value="${equipAll.judgePeople}" >
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			
		<div class="form-group">
					<label class="col-sm-3 control-label">申请部门</label>
					<div class="col-sm-9">
						<select style="width: 30%;" class="form-control" id="client" name="departmentid">
							<c:forEach var="key" items="${equipapp}" >
								<%-- <c:if test="${userFormMap.position_id!=key.id }">
								</c:if> --%>
								<option value="${key.id }" ${key.id==equipAll.departmentId ? 'selected' :'' }>${key.name }</option>	
							</c:forEach>
						</select>
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
		
		 <div class="form-group">
				<label class="col-sm-3 control-label">设备名称</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh"
						placeholder="请输入设备名称" name="equipmentname" id="nc_code_group_no" value="${equipAll.equipmentName}">
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			
			<div class="form-group">
				<label class="col-sm-3 control-label">设备规格</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkName"
						placeholder="请输入设备规格" name="equipmentspecification" id="nc_code_group_desc" value="${equipAll.equipmentSpecification}">
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			
			<div class="form-group">
				<label class="col-sm-3 control-label">设备型号</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkName"
						placeholder="请输入设备型号" name="equipmentmodel" id="nc_code_group_desc" value="${equipAll.equipmentModel}">
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			
			<div class="form-group">
				<label class="col-sm-3 control-label">设备数量</label>
				<div class="col-sm-9">
					<input type="number" min="0" class="form-control checkName"
						placeholder="请输入设备数量" name="equipmentcount" id="nc_code_group_desc" value="${equipAll.equipmentCount}">
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			
			<div class="form-group">
				<label class="col-sm-3 control-label">购买原因</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkName"
						placeholder="请输入购买原因" name="reason" id="nc_code_group_desc" value="${equipAll.reason}">
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			
			<div class="form-group">
				<label class="col-sm-3 control-label">报价</label>
				<div class="col-sm-9">
					<input type="number" min="0" class="form-control checkName"
						placeholder="请输入报价" name="price" id="nc_code_group_desc" value="${equipAll.price}">
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			
			<div class="form-group">
				<label class="col-sm-3 control-label">部门审批</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkName"
						placeholder="请输入评审内容" name="departmentJudge" id="nc_code_group_desc" value="${equipAll.departmentJudge}">
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			
			<div class="form-group">
				<label class="col-sm-3 control-label">评审内容</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkName"
						placeholder="请输入评审内容" name="judgecontent" id="nc_code_group_desc" value="${equipAll.judgeContent}">
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			
			<div class="form-group">
				<label class="col-sm-3 control-label">评审结果</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkName"
						placeholder="请输入评审结果" name="judgeresult" id="nc_code_group_desc" value="${equipAll.judgeResult}">
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			
			<div class="form-group">
				<label class="col-sm-3 control-label">总经理审批</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkName"
						placeholder="请输入总经理审批" name="managerjudge" id="nc_code_group_desc" value="${equipAll.managerJudge}">
				</div>
			</div>		
			<div class="line line-dashed line-lg pull-in"></div>
			
			<div class="form-group">
				<label class="col-sm-3 control-label">备注</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkName"
						placeholder="请输入总经理审批" name="remark" id="nc_code_group_desc" value="${equipAll.remark}">
				</div>
			</div>		
			<div class="line line-dashed line-lg pull-in"></div>  
			
			<div class="form-group">
					<label class="col-sm-3 control-label">同意状态</label>
					<div class="col-sm-9">
						<select style="width: 30%;" class="form-control" id="client" name="agreestatus">
								<option <c:if test="${equipAll.agreeStatus == null}"> selected </c:if> >--请选择--</option>	
								<option value="0" ${equipAll.agreeStatus ==0 ? selected : ''}>不同意</option>	
								<option value="1" ${equipAll.agreeStatus ==1 ? selected : ''}>同意</option>							
						</select>
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
					
			<div class="form-group">
					<label class="col-sm-3 control-label">使用状态</label>
					<div class="col-sm-9">
						<select style="width: 30%;" class="form-control" id="client" name="status">		 
								<option value="1" ${equipAll.status ==1 ? selected : ''} >正常</option>	
								<option value="2" ${equipAll.status ==2 ? selected : ''} >删除</option>	
						</select>
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				
				<div class="form-group">
					<label class="col-sm-3 control-label">验证状态</label>
					<div class="col-sm-9">
						<select style="width: 30%;" class="form-control" id="client" name="acceptanceStatus">							 
								<option value="1" ${equipAll.acceptanceStatus ==1 ? selected : ''}>已验证</option>	
								<option value="2" ${equipAll.acceptanceStatus ==2 ? selected : ''}>未验证</option>	
						</select>
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
			
			<div class="form-group">
				<label class="col-sm-3 control-label">报价单图片</label>
				<div class="col-sm-9">
					<input type="file" class="form-control checkName"
						placeholder="报价单图片" name="pricePic" id="nc_code_group_desc" >
				</div>
			</div>	
			${equipAll.pricePic}	
			<div class="line line-dashed line-lg pull-in"></div> 		
			</div>
			<footer class="panel-footer text-right bg-light lter">
			<button type="submit" class="btn btn-success btn-s-xs">提交</button>
		</footer> 
	</section>
	</form>
</body>
</html>